from django.template.loader import find_template_source

def get_raw_template(template_name):
    source, origin = find_template_source(template_name)
    return source